{% extends "base.html" %}

{% block title %}查找会员信息{% endblock title %}
{% block subtitle %}会员信息 > 找到你的ID{% endblock subtitle %}

{% block content %}
<div id="find_info" class="new_win">
    <div class="new_win_con">
        <form name="fidlost" action="/bbs/id_lost" onsubmit="return fidlost_submit(this);" method="post" autocomplete="off">
            <input type="hidden" name="token" value="">
            <h3>有会员信息 ID 查找</h3>
            <fieldset id="info_fs">
                <p>
                    您加入时注册的名称, 请输入您的电子邮件地址.<br>
                    会员信息和输入信息必须相同, ID你可以找到.
                </p>
                <label for="mb_name" class="blind">姓名<strong class="blind">必不可少的</strong></label>
                <input type="text" name="mb_name" id="mb_name" required="" class="required frm_input half_input" size="30" placeholder="姓名">
                <label for="mb_email" class="blind">E-mail 地址<strong class="blind">必不可少的</strong></label>
                <input type="text" name="mb_email" id="mb_email" required="" class="required frm_input full_input email" size="100" placeholder="E-mail 地址">
            </fieldset>

            <!-- Captcha Start -->
            <fieldset id="captcha" class="captcha">
                {% include captcha_widget(request) ignore missing %}
            </fieldset>
            <!-- Captcha End -->

            <div class="win_btn">
                <button type="submit" class="btn_submit">ID 查找</button>
            </div>
        </form>
    </div>
</div>
<script>    
function fidlost_submit(f) {
    // captcha 使用时
    if (typeof check_captcha === "function") {
        if (!check_captcha(f)) {
            return false;
        }
    }

    f.token.value = generate_token();

    return true;
}
</script>
{% endblock content %}